#!/usr/bin/env python
# -*- coding: utf-8 -*-
# @Time    : 2020/2/7 19:44
# @Author  : leon yan
# @Site    : 
# @File    : qpulsesignal.py
# @Software: PyCharm

import time

from PyQt5.QtCore import pyqtSignal, QThread


class Qpulsesignal(QThread):
    bPulse = pyqtSignal()

    def __init__(self):
        super().__init__()
        self.working = True

    def __del__(self):
        pass

    def delQThread(self):
        self.working = False

    def run(self):
        while self.working:
            self.bPulse.emit()
            time.sleep(1.0)


class Qhalfclocksignal(QThread):
    bhalfclock = pyqtSignal()

    def __init__(self):
        super().__init__()
        self.working = True

    def __del__(self):
        pass

    def delQThread(self):
        self.working = False

    def run(self):
        while self.working:
            self.bhalfclock.emit()
            time.sleep(0.2)


if __name__ == '__main__':
    pass
